<?php

class EmploymentContractTypeHeaderFactory extends ohrmListConfigurationFactory
{

    protected function init()
    {

        $header1 = new ListHeader();
        $header2 = new ListHeader();

        $header1->populateFromArray(array(
            'name' => 'Employment Contract Type Code',
            'width' => '49%',
            'isSortable' => true,
            'sortField' => 'code',
            'elementType' => 'link',
            'elementProperty' => array(
                'labelGetter' => 'getCode',
                'placeholderGetters' => array('id' => 'getId'),
                'urlPattern' => 'index.php/tluadmin/saveEmploymentContractType?employmentContractTypeId={id}'),
        ));

        $header2->populateFromArray(array(
            'name' => 'Employment Contract Type Name',
            'width' => '49%',
            'elementType' => 'label',
            'elementProperty' => array('getter' => 'getName'),
        ));

        $this->headers = array($header1, $header2);
    }

    public function getClassName()
    {
        return 'EmploymentContractType';
    }
}

